//指定一个函数是没有返回值的,函数没有任何返回值就写void
//不写也是void类型
//返回值是void类型，我们也可以是返回undefined(ts编辑器也可以这么做,隐式返回值就是undefined)

//1.显示的返回undefined
function sum(num1: number, num2: number): void {
  console.log(num1 + num2);
  return undefined;
}
//2.隐式的返回undefined
function sum1(num1: number, num2: number): void {
  console.log(num1 + num2);
  return ;
}
//3.隐式的返回undefined
function sum2(num1: number, num2: number): void {
  console.log(num1 + num2);
}

type LyricInfoType = { time: number; text: string };

function parseLyric(lyric: string): LyricInfoType[] {
  const LyricInfos: LyricInfoType[] = [];
  return LyricInfos;
}

//用来指定函数的返回值是void
type FooType = () => void;

const foo: FooType = () => {};

export {};
